<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <link href="<?php echo $this->config->item('css_path').'main.css';?>" rel="stylesheet" type="text/css">
        <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
        <?=$meta;?>
        <title><?=$application_name;?></title>
        <script type="text/javascript">
        <?=$js;?>
        </script>
    </head>
    <body onLoad="<?=$resp;?>">
        <div id="wrapper">
            <div id="header">
                <div id="header_left">
                    &nbsp;
                </div>
                <div id="header_right">
                    <center>
                    <img id="logo" src="<?=$this->config->item('images_path');?>logo.jpeg" alt="logo" /><br/>
                    </center>
                    <h1><?=$site_name?></h1>
                    <?php if ($this->session->userdata('real_name')): ?>
                    <div id="header_userinfo">
                    Logged in as: <?=$this->session->userdata('real_name')?>
                    </div>
                    <?php endif ?>
                </div>
            </div>
            <?php if ($site_menu): ?>
            <div id="tabs">
                <ul>
                        <?=$site_menu?>
                </ul>
                <div class="clear"></div>
            </div>
            <?php endif; ?>
            <div id="main">
                <h2 style="margin-bottom: .2em; color: <?= ($status_color) ? $status_color : "inherit";?> !important"><?=$content_legend?></h2>
                <?php if ($app_menu):?>
                <div id="tabs">
                    <ul>
                            <?=$app_menu?>
                    </ul>
                    <div class="clear"></div>
                </div>
                <?php endif; ?>
                <div id="appcontent">
                    <?=$content_html?>
                </div>
                <div id="footer">
                   hruiz, Sistemas Mexicali, 2011
                </div>
            </div>
        </div>
    </body>
</html>
